#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_toolButton_down_clicked()
{
    QRect rec=ui->Button_thing->geometry();
    ui->Button_thing->setGeometry(rec.x(),rec.y()+5,rec.width(),rec.height());
}

void Widget::on_toolButton_up_clicked()
{
    QRect rec=ui->Button_thing->geometry();
    ui->Button_thing->setGeometry(rec.x(),rec.y()-5,rec.width(),rec.height());
}

void Widget::on_toolButton_right_clicked(bool checked)
{
    QRect rec=ui->Button_thing->geometry();
    ui->Button_thing->setGeometry(rec.x()+5,rec.y(),rec.width(),rec.height());
}

void Widget::on_toolButton_left_clicked()
{
    QRect rec=ui->Button_thing->geometry();
    ui->Button_thing->setGeometry(rec.x()-5,rec.y(),rec.width(),rec.height());
}

void Widget::on_Button_thing_clicked()
{

}
